xm: Fix xm start -c / --vncviewer
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 25 Sep 2008 12:07:43 +0000 (13:07 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 25 Sep 2008 12:07:43 +0000 (13:07 +0100)
commit0ae658ea9f3e26ec9ea613a1d5e85d8bf3296277
tree559b7b56bdeb2becc1c3d840b5a83ebe3c2be4e8
parent270fdae556f98530f3873c81ad082f973939d990
xm: Fix xm start -c / --vncviewer

In xm start the --vncviewer option has no effect, instead -c tries to
both connect to the console and start vncviewer. Additionally, to
start vncviewer it uses the domid variable which is only defined a few
lines later. Thus xm start -c doesn't work at all.

This patch fixes both problems.

Signed-off-by: Kevin Wolf <kwolf@suse.de>
tools/python/xen/xm/main.py